﻿
// ReSharper disable InconsistentNaming
using Gp.Scripts.Core;
using Gp.Scripts.GUI;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
using NRFramework;

namespace Gp.Scripts.GUI 
{
    public class PanelMain_EventWidgetBase : GUIWidget
    {		protected ScrollRect mScrollView_ScrollRect;		protected RectTransform mTxtLog_RectTransform;		protected Scrollbar mScrollbarVertical_Scrollbar;
        protected override void OnBindCompsAndEvents() 
        {			mScrollView_ScrollRect = (ScrollRect)viewBehaviour.GetComponentByIndexs(0, 0);			mTxtLog_RectTransform = (RectTransform)viewBehaviour.GetComponentByIndexs(1, 0);			mScrollbarVertical_Scrollbar = (Scrollbar)viewBehaviour.GetComponentByIndexs(2, 0);			BindEvent(mScrollView_ScrollRect);			BindEvent(mScrollbarVertical_Scrollbar);		}

        protected override void OnUnbindCompsAndEvents() 
        {			UnbindEvent(mScrollView_ScrollRect);			UnbindEvent(mScrollbarVertical_Scrollbar);			mScrollView_ScrollRect = null;			mTxtLog_RectTransform = null;			mScrollbarVertical_Scrollbar = null;		}
    }
}